package map;

import java.util.HashMap;
import java.util.Map;

public class mapDemo1 {
    public static void main(String[] args) {
        Map<String,Integer> map=new HashMap<>();
        map.put("english",90);
       Integer value=map.put("math",96);
        System.out.println(value);
        map.put("chinese",95);
        System.out.println(map);

        value=map.put("math",77);
        System.out.println(map);
        System.out.println(value);

        value =map.get("chinese");
        System.out.println("chinese"+value);
        value= map.get("math");
        System.out.println("math"+value);
        int size= map.size();
        System.out.println("size:"+size);
        value=map.remove("math");
        System.out.println(map);



        boolean key=map.containsKey("math");
        System.out.println(key);
        boolean cke= map.containsValue(90);
        System.out.println(cke);

        //map.clear();

       

    }
    public static void test(double a){
        a--;
    }

}
